import request from '@/utils/request'

// 查询企业客户列表 （分页）
export function listCustomerCompanyPerson(query) {
  return request({
    url: '/person/customerCompany/list',
    method: 'get',
    params: query
  })
}

// 查询企业客户列表 （无分页）
export function selectListCustomerCompany() {
  return request({
    url: '/person/customerCompany/selectList',
    method: 'get'
  })
}

// 查询企业客户详细
export function getCustomerCompanyPerson(id) {
  return request({
    url: '/person/customerCompany/' + id,
    method: 'get'
  })
}

// 新增企业客户
export function addCustomerCompany(data) {
  return request({
    url: '/person/customerCompany',
    method: 'post',
    data: data
  })
}

// 修改企业客户
export function updateCustomerCompany(data) {
  return request({
    url: '/person/customerCompany',
    method: 'put',
    data: data
  })
}

// 修改企业客户
export function changeStatus(data) {
  return request({
    url: '/person/customerCompany/changeStatus',
    method: 'put',
    data: data
  })
}

// 删除企业客户
export function delCustomerCompany(id) {
  return request({
    url: '/person/customerCompany/' + id,
    method: 'delete'
  })
}
